package com.smart.workflow.adapters;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.espertech.esper.client.EPServiceProvider;
import com.smart.workflow.markers.RuntimeEngine;
import com.smart.workflow.models.SMSInputEvent;

/**
 * The purpose of this class would be normally to get sms'es using XMPP or CIMD2
 * protocol. Then notify about it by creating an event
 * 
 * @author Lukasz
 * 
 */
@Component("smsAdapter")
public class SMSAdapter {

	@Resource(name = "runtimeEngine")
	RuntimeEngine runtime;

	public void dispatchEvent() {
		SMSInputEvent smsEvent = new SMSInputEvent();
		smsEvent.setMsisdn("msisdn");
		runtime.sendEvent(smsEvent);
	}
}
